package main

import (
	"crawlerm/engine"
	"crawlerm/zhenai/parser"
	"crawlerm/scheduler"
	"crawlerm/persist"
)

func main() {
	itemChan,err:=persist.ItemServer()
	if err!=nil{
		panic(err)
	}
	e:=engine.ConcurrentEngine{
		Scheduler:&scheduler.QueuedScheduler{},
		WorkerCount:100,
		ItemChan:itemChan,
	}
	e.Run(engine.Request{
		Url:"http://www.zhenai.com/zhenghun",
		ParserFunc:parser.ParseCityList,
	})

}
